package com.zf.shuashua.net;

import com.zf.shuashua.advert.mg.AdConfigBean;
import com.zf.shuashua.advert.mg.AdDataBean;
import com.zf.shuashua.advert.mg.AdOperationBean;
import com.zf.shuashua.advert.mg.ResponseBean;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface MyApiService {

    @POST()
    Observable<ResponseBean<AdConfigBean>> adConfig(
            @Url String url
    );

    @POST()
    Observable<ResponseBean<List<AdDataBean>>> adList(
            @Url String url,
            @Body RequestBody body
    );

    @POST()
    Observable<Object> requestUrl(
            @Url String url
    );

    @GET()
    Observable<Object> reportUrl(
            @Url String url
    );

    @GET()
    Observable<AdOperationBean> getAdOperation(
            @Url String url
    );
}
